package org.example.work1022.w2;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext bean = new ClassPathXmlApplicationContext("1022.xml");
        Printer p = bean.getBean(Printer.class);
        p.print();
    }
}
